.class Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;
.super Ljava/lang/Object;
.source "AppPreferenceActivity.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/opongo/blogapp/activities/AppPreferenceActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;


# direct methods
.method constructor <init>(Lcom/opongo/blogapp/activities/AppPreferenceActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    .line 114
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onPreferenceClick(Landroid/preference/Preference;)Z
    .locals 6
    .parameter "preference"

    .prologue
    const/4 v5, 0x0

    .line 117
    sget-boolean v3, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->DEBUG:Z

    if-eqz v3, :cond_0

    .line 118
    invoke-static {}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->access$3()Ljava/lang/String;

    move-result-object v3

    const-string v4, "onClickSetTimeTo"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 121
    :cond_0
    new-instance v2, Ljava/text/SimpleDateFormat;

    const-string v3, "HH:mm"

    invoke-direct {v2, v3}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 123
    .local v2, sdf:Ljava/text/SimpleDateFormat;
    :try_start_0
    iget-object v3, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    iget-object v4, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    #getter for: Lcom/opongo/blogapp/activities/AppPreferenceActivity;->nighttimeTo:Landroid/preference/Preference;
    invoke-static {v4}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->access$6(Lcom/opongo/blogapp/activities/AppPreferenceActivity;)Landroid/preference/Preference;

    move-result-object v4

    #setter for: Lcom/opongo/blogapp/activities/AppPreferenceActivity;->nighttimeCurrent:Landroid/preference/Preference;
    invoke-static {v3, v4}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->access$5(Lcom/opongo/blogapp/activities/AppPreferenceActivity;Landroid/preference/Preference;)V

    .line 124
    iget-object v3, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    iget-object v3, v3, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->nighttimeToString:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    .line 130
    :goto_0
    invoke-virtual {v2}, Ljava/text/SimpleDateFormat;->getCalendar()Ljava/util/Calendar;

    move-result-object v0

    .line 132
    .local v0, c:Ljava/util/Calendar;
    iget-object v3, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    const/16 v4, 0xb

    invoke-virtual {v0, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    #setter for: Lcom/opongo/blogapp/activities/AppPreferenceActivity;->mHour:I
    invoke-static {v3, v4}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->access$0(Lcom/opongo/blogapp/activities/AppPreferenceActivity;I)V

    .line 133
    iget-object v3, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    const/16 v4, 0xc

    invoke-virtual {v0, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    #setter for: Lcom/opongo/blogapp/activities/AppPreferenceActivity;->mMinute:I
    invoke-static {v3, v4}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->access$1(Lcom/opongo/blogapp/activities/AppPreferenceActivity;I)V

    .line 135
    iget-object v3, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    invoke-virtual {v3, v5}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->removeDialog(I)V

    .line 136
    iget-object v3, p0, Lcom/opongo/blogapp/activities/AppPreferenceActivity$3;->this$0:Lcom/opongo/blogapp/activities/AppPreferenceActivity;

    invoke-virtual {v3, v5}, Lcom/opongo/blogapp/activities/AppPreferenceActivity;->showDialog(I)V

    .line 137
    const/4 v3, 0x1

    return v3

    .line 125
    .end local v0           #c:Ljava/util/Calendar;
    :catch_0
    move-exception v1

    .line 127
    .local v1, e:Ljava/text/ParseException;
    invoke-virtual {v1}, Ljava/text/ParseException;->printStackTrace()V

    goto :goto_0
.end method
